package com.example.blog.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.blog.dao.pojo.Category;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleVo {
    @JsonSerialize(using =ToStringSerializer.class)
    private Long id;
    private String nickname;
    private String title;
    private Long authorId;
    private Long bodyId;
    private String cover;
    private String summary;
    private String publishTime;
    private String updateTime;
    private Integer isTop;
    private Integer viewCounts;
    private Integer commentCounts;
    private Integer likesCounts;

    private List<TagVo> tags;
    private ArticleBodyVo body;
    private Category category;
    private Boolean isLike = false;
    private Boolean isCollection = false;

}
